size = 5

print("1. 直角在左上角：")
for i in range(size, 0, -1):
    print('*' * i)

print("\n2. 直角在右上角：")
for i in range(size, 0, -1):
    print(f"{' ' * (size - i)}{'*' * i}")

print("\n3. 直角在左下角：")
for i in range(1, size + 1):
    print('*' * i)

print("\n4. 直角在右下角：")
for i in range(1, size + 1):
    print(f"{' ' * (size - i)}{'*' * i}")

